package com.atguigu.gulimall.auth.feign;

import com.atguigu.common.utils.R;
import com.atguigu.gulimall.auth.vo.LoginVo;
import com.atguigu.gulimall.auth.vo.RegisterVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @author 满超
 * @date 2020/06/17
 **/
@FeignClient("gulimall-member")
public interface MemberRegister {
    @PostMapping("/member/member/register")
    R register(@RequestBody RegisterVo memberRegisterVo);

    @PostMapping("/member/member/login")
    R login(@RequestBody LoginVo memberLoginVo);
}
